package com.sayice.design.End8_3;

public class Client {
    public static void main(String[] args) {
        Manager gameManager1, gameManager2, gameManager3;
        gameManager1 = Manager.getGameManager();
        gameManager2 = Manager.getGameManager();
        gameManager3 = Manager.getGameManager();
        if(gameManager1 == gameManager2 && gameManager1 == gameManager3) {
            System.out.println("只能打开一个管理器界面!");
        }
        System.out.println("----------------");
        gameManager1.setAboutGame("3","森林","火柴人");
    }
}
